<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div style="background: #BEEBEB; width: 100%; font-family: '微软雅黑';">
		<div style="text-align: center; font-size: 24px;">考试安排</div>
	</div>
	<div>
		<table width="100%" border="1" align="center" bgcolor="#BEEBEB" cellpadding="0" cellspacing="0">
			<tr>
				<th>序号</th>
				<th>考试开始时间</th>
				<th>考试结束时间</th>
				<th>考试教室</th>
				<th>学生编号</th>
				<th>班级编号</th>
				<th>试卷名称</th>
				<th>状态</th>
				<th>操作者</th>
				<th>操作时间</th>
			</tr>
			<c:forEach items="${stuUserList }" var="stuUser" varStatus="v">
				<tr>
					<td>${v.count }</td>
					<td><f:formatDate value="${stuUser.examTimeStart }" pattern="yyyy-MM-dd"/></td>
					<td><f:formatDate value="${stuUser.examTimeStop }" pattern="yyyy-MM-dd"/></td>
					<td>${stuUser.examClassRoom}</td>
					<td>${stuUser.toUserIds}</td>
					<td>${stuUser.toClassId}</td>
					<td>${stuUser.paperName}</td>
					<td>
                       <c:if test="${stuUser.state==1 }">
	          					有效
	                   </c:if>
					   <c:if test="${stuUser.state==2 }">
					          	无效
	                   </c:if>  
	          		</td>
					<td>${stuUser.userName}</td>
					<td><f:formatDate value="${stuUser.operateTime }" pattern="yyyy-MM-dd"/></td>
					<td><c:if test="${stuUser.state==1 }">
	          					<a href="${pageContext.request.contextPath}/stu/GoingExamServlet?command=initExamPaper&pageId=${stuUser.examPaperId}">进行考试</a>
	                   </c:if></td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>